package com.jinxiangyang.sensitive;

import com.jinxiangyang.utils.SensitiveInfoUtils;
import com.jinxiangyang.utils.enums.SensitiveDefaultLengthType;

/**
 * @File DefaultSensitiveStrategy.java
 * @Author lzq
 * @Create 2023/8/19 16:37
 */
public class DefaultSensitiveStrategy implements IStrategy{

    @Override
    public String desensitization(String source, int begin, int end) {
        return SensitiveInfoUtils.password(source, SensitiveDefaultLengthType.DEFAULT_STRATEGY.getBegin());
    }
}

